using System;
using Gadgeteer.Interfaces.Timed;

namespace Gadgeteer.Interfaces.Fakes
{
    public class FakeClock : IClock
    {
        private object date;
        private object dateTime;

        public FakeClock()
        {
        }

        public DateTime Date
        {
            get { return ((DateTime)(date ?? Current)).Date; }
            set { date = value; }
        }

        public DateTime Current
        {
            get { return (DateTime)(dateTime ?? DateTime.Now); }
            set { dateTime = value; }
        }
    }
}
